import Layout from "../layout/index.vue";
import { PERMISSION_KEY } from "@/constants/common";
const newsManageRoutes = [
    {
        path: "/news",
        component: Layout,
        redirect: "/news/index",
        meta: { title: "新闻动态", icon: "DataManage", onlyOneChild: false, permissionKey: 2 },
        children: [
            {
                path: "index",
                component: () => import("../pages/newsManage/index.vue"),
                name: "newsIndex",
                meta: {
                    title: "新闻动态",
                    activeMenu: "/news/index",
                    permissionKey: PERMISSION_KEY[1].key,
                },
            },
            {
                path: "edit",
                component: () => import("../pages/newsManage/edit.vue"),
                name: "newsEdit",
                meta: {
                    title: "新闻动态",
                    activeMenu: "/news/index",
                    permissionKey: PERMISSION_KEY[1].key,
                },
            },
            {
                path: "detail/:id",
                component: () => import("../pages/newsManage/detail.vue"),
                name: "newsDetail",
                meta: {
                    title: " 新闻动态详情",
                    activeMenu: "/news/index",
                },
            },
        ],
    },
];
export default newsManageRoutes;
